/**   
 * Copyright © 2021 郑心怡. All rights reserved.
 * 
 * @Title:UserInfoDO.java 
 * @Prject: com.interesting.examsystem.user.model
 * @Package: com.interesting.examsystem.user.model
 * @author: ZhengXinyi   
 * @date: 2021-07-24
 * @version: V1.0   
 */
package com.interesting.examsystem.user.model;

import com.interesting.examsystem.common.core.model.BaseVO;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @ClassName: UserInfoDO
 * @Description:  数据对象
 * @author: ZhengXinyi 
 * @date: 2021-07-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_user_info")
@ApiModel(value="UserInfoDO对象", description="")
public class UserInfoDO extends BaseVO {

    private static final long serialVersionUID=1L;
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;
    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;
    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;
    @ApiModelProperty(value = "别名")
    @TableField("alias_name")
    private String aliasName;
    @ApiModelProperty(value = "账号是否可用。默认为1（可用）")
    @TableField("enabled")
    private Boolean enabled;
    @ApiModelProperty(value = "是否过期。默认为1（没有过期）")
    @TableField("not_expired")
    private Boolean notExpired;
    @ApiModelProperty(value = "账号是否锁定。默认为1（没有锁定）")
    @TableField("account_not_locked")
    private Boolean accountNotLocked;
    @ApiModelProperty(value = "证书（密码）是否过期。默认为1（没有过期）")
    @TableField("credentials_not_expired")
    private Boolean credentialsNotExpired;
    @ApiModelProperty(value = "上一次登录时间")
    @TableField("last_login_time")
    private Date lastLoginTime;
    @ApiModelProperty(value = "排序")
    @TableField("sort_number")
    private Integer sortNumber;


}
